package top.scauwlt.utils;

/**
 * @Author wmm
 * @Date 2022/7/21 12:07
 */
public class StringUtil {
    public static boolean isBlank(String str) {
        if (str == null || str.length() == 0) {
            return true;
        }
        for (char ch : str.toCharArray()) {
            if (!Character.isWhitespace(ch)) {
                return false;
            }
        }
        return true;
    }
}
